using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace KEA
{
    public class Son : Microsoft.Xna.Framework.GameComponent
    {
        const string INTRO = "music/Ktulu";

        private Game1 mgame;

        private Song intro;
        private Song[] sons = new Song[5];

        public Son(Game1 game)
            : base(game)
        {
            mgame = game; 
        }

        /// <summary>
        /// Allows the game component to perform any initialization it needs to before starting
        /// to run.  This is where it can query for any required services and load content.
        /// </summary>
        public override void Initialize()
        {
            base.Initialize();
            intro = mgame.Content.Load<Song>(INTRO);
            sons[0] = intro;
            playIntro();
        }

        private void playIntro()
        {
            MediaPlayer.Play(intro);
        }

        /// <summary>
        /// Allows the game component to update itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
        }
    }
}
